<template>
  <section class="entry-table">
     <el-table :data="data" border >
          <el-table-column prop="col0Title" label="A资产"  align="center" />
          <el-table-column prop="col1Title" label="行次"  align="center" />
          <el-table-column prop="col2Title" label="期末余额"  align="center" />
          <!-- <el-table-column prop="col3Title" label="本期发生额"  align="center" /> -->
          <el-table-column prop="col3Title" label="年初余额"  align="center" />
          <el-table-column prop="col4Title" label="E负债和所有者权益（或股东权益）" align="center" />
          <el-table-column prop="col5Title" label="行次" align="center"/>
          <el-table-column prop="col6Title" label="期末余额" align="center"/>
          <!-- <el-table-column prop="col8Title" label="本期发生额" align="center"/> -->
          <el-table-column prop="col7Title" label="年初余额" align="center"/>
     </el-table>
  </section>
</template>

<script>
/**
 * @file 智能做账详情 / 资产负债表
 */


export default {
  props: {
    data: {
      type: Array
    }
  },
  data() {
    return {

    };
  },
  methods: {

    arraySpanMethod({ row, column, rowIndex, columnIndex }) {
      if (row.colSpans !== undefined && row.columnIndexs) {
           const index = row.columnIndexs.indexOf(columnIndex);
          if(index !== -1) {
            return [1, row.colSpans[index]]
          }
          else {
            return [1, 0]
          }
      }
    },

  }
};
</script>
<style lang="less" scoped>
@import "../../../assets/var.less";


</style>